<?php

/**
 * Docente form.
 *
 * @package    ecampus
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class DocenteForm extends BaseDocenteForm
{
     public function  configure() {
       // parent::configure();
        $this->disableLocalCSRFProtection();

        $this->validatorSchema->setPostValidator(
              new sfValidatorAnd(array(
                new sfValidatorDoctrineUnique(array('model' => 'Docente', 'column' => array('nombre_usuario'))),
                new sfValidatorDoctrineUnique(array('model' => 'Docente', 'column' => array('email'))),
      ))
    );

}

}
    


          